#!/bin/bash source ~/venv_otree/bin/activate export DATABASE_URL=postgres://otree_user:mydbpassword@localhost/django_db alias python3="python3.6" source ~/venv_otree/bin/activate export OTREE_ADMIN_PASSWORD=my_password export OTREE_PRODUCTION=1 # uncomment this line to enable production mode export OTREE_AUTH_LEVEL=DEMO sudo ufw allow 8080 cd oTree otree runprodserver 8080